/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cpal.entrenamiento.service.impl;

import com.cpal.entrenamiento.dao.IPalabraDAO;
import com.cpal.entrenamiento.entity.Palabra;
import com.cpal.entrenamiento.service.IPalabraService;
import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;

/**
 *
 * @author Omar
 */
@Service("palabraService")
@Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
public class PalabraService implements IPalabraService, Serializable{

    @Autowired
    IPalabraDAO palabraDAO;
    
    @Override
    public List<Palabra> buscarPalabra(String descripcion, String rimeCon, Integer clasificacion, String silaba, Integer numSilabas, String estructura, Integer posicion) {
       return palabraDAO.buscarPalabra(descripcion, rimeCon, clasificacion, silaba, numSilabas, estructura, posicion);
    }
    
}
